{% extends "../base.html" %}
{% block page_title %}直推列表{% end %}

{% block content %}
<div class="countgo pull-left">
    <div class="zt">
        <!--MAN -->
        <div class="remain" style="height: 553px;">
            <div class="gao1"></div>
            <div class="page-header long-header">
                <h3>账户管理
                    <small> 直推列表</small>
                </h3>
            </div>
            <div>
                <ol class="breadcrumb">
                    <li><span class="glyphicon glyphicon-home" aria-hidden="true"></span> <a href="/user/home">主页</a>
                    </li>
                    <li><a href="#">账户管理</a></li>
                    <li class="active">直推列表</li>
                </ol>
            </div>
            <div class="panel panel-default">
                <div class="panel-heading">直推列表</div>
                <div class="panel-body">
                     您总共直推:{{counts}}个用户
                </div>
                <table class="table table-striped table-hover">
                    <tbody>
                    <tr>
                        <td>用户编号</td>
                        <td>级别</td>
                        <td>激活币</td>
                        <td>金币</td>
                        <td>状态</td>
                        <td>注册时间</td>
                    </tr>


                    {%if records.count()==0%}
                    <tr>
                        <td colspan="6">暂无记录</td>
                    </tr>
                    {%else%}
                    {%for r in records%}
                    <tr>
                        <td>{{r.get('uid')}}</td>
                        <td>{{r.get('level')}}</td>
                        <td>{{r.get('money')}}</td>
                        <td>{{r.get('jinbi',0)}}</td>
                        <td>{%if r.get('is_active')%}已激活{%else%}未激活{%end%}</td>
                        <td>{{r.get('regtime')}}</td>
                    </tr>
                    {%end%}
                    <tr>
                        <td colspan="6">
                            <div class="clearfix">
                                <div class="btn-group pull-left" role="group"><a class="btn btn-default" href="#"
                                                                                 role="button">首页</a><a
                                        class="btn btn-default" href="?p={{prev_page}}" role="button">上一页</a><a
                                        class="btn btn-default"
                                        href="?p={{next_page}}">下一页</a><a
                                        class="btn btn-default" href="?p={{pages}}">尾页</a></div>
                                <div class="pull-right pt1">&nbsp;页次：<strong><font color="red">{{current_page}}</font>/{{pages}}</strong>页
                                    &nbsp;共<b><font color="#FF0000">{{counts}}</font></b>条记录
                                </div>
                            </div>
                        </td>
                    </tr>
                    {%end%}


                    </tbody>
                </table>
            </div>
        </div>
        <!--MAN End-->
    </div>
</div>
{%end%}
